package com.xyht.sca_s.student_manage_system.modules.stampRegistration.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.stampRegistration.entity.dto.SmsStampRegistrationProcessDto;
import com.xyht.sca_s.student_manage_system.modules.stampRegistration.service.SmsStampRegistrationProcessService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-05-25
 */
@RestController
@SecretBody
@RequestMapping("/stampRegistration/process")
public class SmsStampRegistrationProcessController {

    @Resource
    private SmsStampRegistrationProcessService smsStampRegistrationProcessService;

    @ApiModelProperty("流程列表")
    @GetMapping("/list")
    public ResponseResult getStampRegistrationProcessList(){
        return smsStampRegistrationProcessService.getStampRegistrationProcessList();
    }

    @ApiModelProperty("流程修改")
    @PostMapping("/update")
    public ResponseResult updateStampRegistrationProcess(@RequestBody SmsStampRegistrationProcessDto updateProcessDto){
        return smsStampRegistrationProcessService.updateStampRegistrationProcess(updateProcessDto);
    }

}

